<?php

class run_carrier extends Controller{
    public function  __construct() {
        parent::Controller();
    }
    public function index(){
        $this->run();
    }
    protected function run(){
        //@TO_DO : error checking for $_post input
        $obj = new shipping_manager();
        $rates =
        $obj->run_carrier(
                $this->input->post("carrier_id"),
                $this->input->post("order_id"));
        echo serialize($rates);
    }

}
?>